package com.example.demoddd.domain.userauth.model.entity;

import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import java.io.Serializable;
import java.sql.Date;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.io.Serial;

/**
 * 用户表 实体类。
 *
 * @author lhl
 * @since 2024-06-06
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Table("st_user")
public class StUser implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Id(keyType = KeyType.Auto)
    private Long userId;

    private String username;

    private String password;

    private Date brithday;

    /**
     * 性别0女1男
     */
    private Integer gender;

    /**
     * 邮箱
     */
    private String email;

}
